package com.slipper.system.codeless.bo;

import java.util.ArrayList;
import java.util.List;

import com.slipper.common.bo.CommonBO;
import org.springframework.web.multipart.MultipartFile;

/**
 * 数据模型信息表
 */
public class DataModelBO extends CommonBO {

    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* 目录ID */
    private String folderId;
    private String folderName;
    private String code;
    private String type;
    private String sourceId;
    private String sourceName;
    /* 名称 */
    private String name;
    /* 描述 */
    private String description;

    private String beforeInsertId;
    private String beforeUpdateId;
    private String beforeDeleteId;
    private String afterInsertId;
    private String afterUpdateId;
    private String afterDeleteId;

    /* 是否内置 */
    private String builtin;
    /* 更新人ID */
    private String updateId;
    /* 更新时间 */
    private Long updateTime;
    /* 创建人ID */
    private String createId;
    /* 创建时间 */
    private Long createTime;

    private int ordinal;
    private List<DataFieldBO> fieldList = new ArrayList<>();
    private List<DataIndexBO> indexList = new ArrayList<>();
    private MultipartFile file;

    public void setId(String id) {
        this.id = id;
    }
    
    public String getId() {
        return id;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }
    
    public String[] getIds() {
        return ids;
    }

    public void setFolderId(String folderId) {
        this.folderId = folderId;
    }
    
    public String getFolderId() {
        return folderId;
    }

    public String getFolderName() {
        return folderName;
    }

    public void setFolderName(String folderName) {
        this.folderName = folderName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public String getName() {
        return name;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getDescription() {
        return description;
    }

    public String getBeforeInsertId() {
        return beforeInsertId;
    }

    public void setBeforeInsertId(String beforeInsertId) {
        this.beforeInsertId = beforeInsertId;
    }

    public String getBeforeUpdateId() {
        return beforeUpdateId;
    }

    public void setBeforeUpdateId(String beforeUpdateId) {
        this.beforeUpdateId = beforeUpdateId;
    }

    public String getBeforeDeleteId() {
        return beforeDeleteId;
    }

    public void setBeforeDeleteId(String beforeDeleteId) {
        this.beforeDeleteId = beforeDeleteId;
    }

    public String getAfterInsertId() {
        return afterInsertId;
    }

    public void setAfterInsertId(String afterInsertId) {
        this.afterInsertId = afterInsertId;
    }

    public String getAfterUpdateId() {
        return afterUpdateId;
    }

    public void setAfterUpdateId(String afterUpdateId) {
        this.afterUpdateId = afterUpdateId;
    }

    public String getAfterDeleteId() {
        return afterDeleteId;
    }

    public void setAfterDeleteId(String afterDeleteId) {
        this.afterDeleteId = afterDeleteId;
    }

    public String getBuiltin() {
        return builtin;
    }

    public void setBuiltin(String builtin) {
        this.builtin = builtin;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }
    
    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
    
    public Long getUpdateTime() {
        return updateTime;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }
    
    public String getCreateId() {
        return createId;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
    
    public Long getCreateTime() {
        return createTime;
    }

    public int getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(int ordinal) {
        this.ordinal = ordinal;
    }

    public List<DataFieldBO> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<DataFieldBO> fieldList) {
        this.fieldList = fieldList;
    }

    public List<DataIndexBO> getIndexList() {
        return indexList;
    }

    public void setIndexList(List<DataIndexBO> indexList) {
        this.indexList = indexList;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }
}
